import CameraDialog from "@/components/CameraDialog";
import Vue from "vue";

// 利用Vue.extend扩展vue组件
const Dialog = Vue.extend(CameraDialog);

export default function(url) {
  // 此处实例化
  const domEl = new Dialog({
    el: document.createElement("div"),
  });
  domEl.visible = true;
  domEl.url = url;
  //document.getElementById(id).append(domEl.$el);
  document.body.appendChild(domEl.$el);
  //console.log(url);
}
